// @APIVersion 1.0.0
// @Title beego Test API
// @Description beego has a very cool tools to autogenerate documents for your API
// @Contact astaxie@gmail.com
// @TermsOfServiceUrl http://beego.me/
// @License Apache 2.0
// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html

// 可用的 HTTP Method
// *: 包含以下所有的函数
// get: GET 请求
// post: POST 请求
// put: PUT 请求
// delete: DELETE 请求
// patch: PATCH 请求
// options: OPTIONS 请求
// head: HEAD 请求

package routers

import (
	"go_backend/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/analysis_chapter", &controllers.ChapterController{}, "get:AnalysisChapter")
	//注解路由
	beego.Include(&controllers.YyuserController{})
	beego.Include(&controllers.UserAnalyzeController{})

	ns := beego.NewNamespace("/v1",
		beego.NSNamespace("/object",
			beego.NSInclude(
				&controllers.ObjectController{},
			),
		),
		beego.NSNamespace("/user",
			beego.NSInclude(
				&controllers.UserController{},
			),
		),
		//beego.NSNamespace("/yy",
		//	beego.NSInclude(
		//		&controllers.YyuserController{},
		//	),
		//),
	)
	beego.AddNamespace(ns)
}
